<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重置成功 - 在线评测系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: #f5f7fa;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .success-container {
            width: 100%;
            max-width: 800px;
            background-color: #fff;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 40px;
            text-align: center;
        }

        .steps-container {
            display: flex;
            justify-content: space-between;
            margin: 40px 20px 60px;
            position: relative;
        }

        .steps-container::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #ddd;
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ddd;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
            color: #fff;
            font-weight: bold;
        }

        .step.completed .step-number {
            background-color: #52c41a;
        }

        .step-label {
            font-size: 14px;
            color: #666;
        }

        .step.completed .step-label {
            color: #52c41a;
        }

        .success-icon {
            font-size: 60px;
            color: #52c41a;
            margin-bottom: 20px;
        }

        .success-title {
            font-size: 24px;
            font-weight: 500;
            color: #333;
            margin-bottom: 15px;
        }

        .success-message {
            font-size: 16px;
            color: #666;
            margin-bottom: 30px;
            line-height: 1.6;
        }

        .countdown {
            margin-top: 20px;
            font-size: 14px;
            color: #999;
        }

        .countdown-number {
            font-weight: bold;
            color: #1890ff;
        }

        .btn {
            display: inline-block;
            padding: 0 15px;
            height: 40px;
            line-height: 40px;
            border-radius: 4px;
            font-size: 14px;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 20px;
        }

        .btn-primary {
            background-color: #1890ff;
            color: #fff;
        }

        .btn-primary:hover {
            background-color: #40a9ff;
        }
    </style>
</head>
<body>
    <div class="success-container">
        <div class="steps-container">
            <div class="step completed">
                <div class="step-number"><i class="fas fa-check"></i></div>
                <div class="step-label">身份验证</div>
            </div>
            <div class="step completed">
                <div class="step-number"><i class="fas fa-check"></i></div>
                <div class="step-label">登录密码重置</div>
            </div>
            <div class="step completed">
                <div class="step-number"><i class="fas fa-check"></i></div>
                <div class="step-label">重置完成</div>
            </div>
        </div>
        
        <div class="success-icon">
            <i class="fas fa-check-circle"></i>
        </div>
        
        <h1 class="success-title">密码重置成功</h1>
        
        <p class="success-message">
            您的密码已成功重置，现在可以使用新密码登录账户。<br>
            为了您的账户安全，请记住定期更换密码并妥善保管。
        </p>
        
        <a href="/pages/login.html" class="btn btn-primary">返回登录</a>
        
        <div class="countdown">
            <span id="countdown-text">系统将在 <span class="countdown-number" id="countdown">5</span> 秒后自动跳转到登录页面</span>
        </div>
    </div>

    <script>
        // 倒计时自动跳转
        let countdown = 5;
        const countdownElement = document.getElementById('countdown');
        
        const timer = setInterval(() => {
            countdown--;
            countdownElement.textContent = countdown;
            
            if (countdown <= 0) {
                clearInterval(timer);
                window.location.href = '/pages/login.html';
            }
        }, 1000);
    </script>
</body>
</html> 